import { form, loading } from '@props'

import { nickname, sex, email, captcha, account, password ,confirmPassword} from '@rules/user' // 新增导入
export const props = { form, loading }

// 动态规则生成函数
export const rules = (currentForm) => ({
    nickname,
    sex,
    email,
    captcha,
   // account,
    password,
    confirmPassword: confirmPassword(currentForm)
  })
